<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8" trimDirectiveWhitespaces="true"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<c:set var="path" value="${pageContext.request.contextPath}" />
   
 <!-- setTimeout("initKKqa()",1200); -->
function isEmptyString(strIn) {
    if (strIn === undefined) {
        return true;
    } else if (strIn == null) {
        return true;
    } else if (strIn == "") {
        return true;
    } else {
        return false;
    }
}
function initKKqa() {
    window.thirdPartyFormAPI.registerEvent('formFieldDbclick',
			function(event) {
			var _formData= window.thirdPartyFormAPI.getFormData();				
				if (event.display == '起案正文') {
				    if(_formData.formData.content.moduleTemplateId == '-1')
				   		 window.open("${pageContext.request.contextPath}/showUeditor.do?method=showUeditor&id="+ _formData.formData.content.contentDataId,'_blank','top=10,resizable=yes');	
				    else	
				    	 window.open("${pageContext.request.contextPath}/showUeditor.do?method=catUeditor&id="+ _formData.formData.content.contentDataId,'_blank','top=10,resizable=yes');	 		
				    }
				 if(event.display == '打印预览')  {
						 window.open("${pageContext.request.contextPath}/showUeditor.do?method=showPrint&id="+ _formData.formData.content.contentDataId,'_blank','top=10,resizable=yes');	
				 } 
			});
}

 function getTest(){
			var html = '';
			html = $(".cap4-form__main").html().toString();
			return html;
		}
